package com.it.order.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author hukai
 * @since 2021-07-26
 */
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
    @TableId(value = "orderId", type = IdType.ID_WORKER_STR)
    private Long orderId;
    /**
     * 商品编号
     */
    @TableField("goodsId")
    private Long goodsId;
    /**
     * 订单状态
     */
    private Integer status;
    /**
     * 订单收货地址
     */
    private String address;
    /**
     * 用户编号
     */
    @TableField("userId")
    private Long userId;


    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Order{" +
        ", orderId=" + orderId +
        ", goodsId=" + goodsId +
        ", status=" + status +
        ", address=" + address +
        ", userId=" + userId +
        "}";
    }
}
